package com.k8.rpc.config;

import java.util.Map;


//故此如果使用自动配置注入需要对此配置类也进行单独注入，应该和K8En同级别

public class RegistryConfig {
    private String host;
    private int port;
    private String registryName;
    private String userName;
    private String password;
    //对应的注册中心实现的自定义配置
    private Map<String,String> anotherParameters;

    public String getHost() {
        return host;
    }

    public RegistryConfig setHost(String host) {
        this.host = host;
        return this;
    }

    public int getPort() {
        return port;
    }

    public RegistryConfig setPort(int port) {
        this.port = port;
        return this;
    }

    public String getRegistryName() {
        return registryName;
    }

    public RegistryConfig setRegistryName(String registryName) {
        this.registryName = registryName;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public RegistryConfig setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public RegistryConfig setPassword(String password) {
        this.password = password;
        return this;
    }

    public Map<String, String> getAnotherParameters() {
        return anotherParameters;
    }

    public RegistryConfig setAnotherParameters(Map<String, String> anotherParameters) {
        this.anotherParameters = anotherParameters;
        return this;
    }
}
